import request from "@/utils/request";

// 查询品牌列表
export function listBrand(query) {
  return request({
    url: "/product/brand/list",
    method: "get",
    params: query,
  });
}
//新增品牌方法
export function addBrand(data) {
  return request({
    url: "/product/brand",
    method: "post",
    data: data,
  });
}
//根据id获取品牌详细信息
export function getBrandDetail(id) {
  return request({
    url: "/product/brand/" + id,
    method: "get",
  });
}
//更新品牌信息
export function updateBrand(data) {
  return request({
    url: "/product/brand",
    method: "put",
    data: data,
  });
}

//删除品牌信息

export function deleteBrandById(id) {
  return request({
    url: "/product/brand/" + id,
    method: "delete",
  });
}

//查询全部品牌信息

export function getBrandAll(){
  return request({
    url: "product/brand/getBrandAll",
    method:"get"
  })
}
